package com.tanhua.dubbo.api;

import com.tanhua.model.enums.VideoType;
import com.tanhua.model.mongo.VideoComment;

import java.util.List;

public interface VideoCommentApi {
    //判断用户是否点赞
    Boolean hasVideo(String videoId, Long userId, VideoType like);
    //保存点赞
    Integer save(VideoComment videoComment);
    //取消点赞
    Integer delete(VideoComment videoComment);
    //查询评论
    List<VideoComment> findComments(String id, Integer page, Integer pagesize, int type);
    //评论点赞
    VideoComment findByIdComment(String id, Long userId);
    //评论取消点赞
    VideoComment findByIdComment1(String id, Long userId);
}
